package com.wlcj.www.web.platform;


import java.util.Arrays;
import java.util.Map;

import com.jfinal.plugin.activerecord.Page;
import com.wlcj.www.enumtype.ProvinceEnum;
import com.wlcj.www.model.platform.PlatformNew;
import com.wlcj.www.service.PlatformService;
import com.wlcj.www.web.BaseAction;

public class PlatformAction extends BaseAction{
	private PlatformService platformService = s(PlatformService.class);
	
	public void index(){
	}
	
	public void platform_list(){
		setAttr("area",Arrays.asList(ProvinceEnum.values()) );
	}
	
	public void platform_list_detail(){
		Map<String, String[]> entity = getParaMap();;
		Page<PlatformNew> page =  platformService.getPage(entity);
		System.out.println(getPara("pageNo"));
		setAttr("page", page);
	}
	
}
